#
# Assume get-vm working fine :-)
# Test base functionality for Start/Suspend/Resume/Stop
#
set-psdebug -trace 1

echo "Pipe all cmdlets"
get-vm | start-vm -vb | suspend-vm -vb | resume-vm -vb | start-vm -vb| stop-vm -vb

echo "Handle single input"
$vm1 = Get-Vm | Select-Object -First 1
$vm1 | Suspend-Vm -vb
Resume-Vm $vm1 -vb

echo "Handle multiple input"
$vms = Get-Vm | Select-Object 
$vms | Suspend-Vm -vb
Resume-Vm $vms -vb

set-psdebug -trace 0